<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>制作简易的当当购物车页面</title>
    <link type="text/css" rel="stylesheet" href="css/cartStyle.css" />
</head>
<body>

<div class="content">
    <div class="logo">
        <img src="images/dd_logo.jpg" ><span onclick="close_win()">关闭</span>
    </div>
    <div class="cartList">
        <ul>
            <li onclick="remove_shoucang()">移入收藏</li>
            <li onclick="del_cart()">删除</li>
            <li onclick="remove_shoucang()">移入收藏</li>
            <li>删除</li>
            <li><span>结 算</span></li>
        </ul>
    </div>
</div>
<script type="text/javascript">
	function close_win(){
		window.close();
	}
	function remove_shoucang(){
		alert("收藏了");
	}
	function del_cart(){
		var isdel = window.confirm("确认要删除吗？");
		if(isdel){
			alert("删了");
		}else{
			alert("不舍得");
		}
	}
</script>
</body>
</html>